<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        .div1 {

            width: 600px;
            height: 300px;
            border: 1px solid black;
            margin: 50px auto 0;
            padding: 10px;
            font-size: 0;
            text-align: center;

        }

        .div1 a {
            background-color: rgb(255, 247, 0);
            padding: 0 10px;
            font-size: 16px;

        }

        .div2 {

            width: 500px;
            height: 100px;
            border: 1px solid black;
            margin: 10px auto 0;

            padding: 10px;

        }
    </style>

</head>

<body>
    <div class="div1">
        <a href="#">链接文字一</a>
        <a href="#">链接文字二</a>
        <a href="#">链接文字三</a>
    </div>
    <div class="div2">
        <a href="#">链接文字一</a>
        <a href="#">链接文字二</a>

    </div>

</body>

</html>